package jinyilw.common.log;
public class LogTools
{
	private static SimpleLogger delegation = new DefaultLogger();

	private LogTools()
	{
	}

	public static void setDelegation(SimpleLogger delegation)
	{
		if (delegation != null)
			LogTools.delegation = delegation;
	}

	public static void info(String msg)
	{
		delegation.info(msg);
	}

	public static void info(String format, Object arg)
	{
		delegation.info(format, arg);
	}

	public static void warn(String msg)
	{
		delegation.warn(msg);
	}

	public static void warn(String format, Object arg)
	{
		delegation.warn(format, arg);
	}

	public static void error(String msg)
	{
		delegation.error(msg);
	}

	public static void error(String format, Object arg)
	{
		delegation.error(format, arg);
	}

	public static void debug(String msg)
	{
		delegation.debug(msg);
	}

	public static void debug(String format, Object arg)
	{
		delegation.debug(format, arg);
	}

	public static void debug(String msg, Exception e)
	{
		delegation.debug(msg, e);
	}
}
